From: Keir Fraser Date: Mon, 12 May 2008 09:14:01 +0000 (+0100) Subject: ia64 pv-on-hvm: __XEN_INTERFACE_VERSION__ is needed to assemble X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14215^2~31 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=286b11f71d43cb6b4779353cbd05376ceee2b609;p=xen.git ia64 pv-on-hvm: __XEN_INTERFACE_VERSION__ is needed to assemble platform-pci/xcom_asm.S, otherwise incompatible kernel module is built. Signed-off-by: Kouya Shimura --- diff --git a/unmodified_drivers/linux-2.6/overrides.mk b/unmodified_drivers/linux-2.6/overrides.mk index ea0738c1e2..7d121ffe22 100644 --- a/unmodified_drivers/linux-2.6/overrides.mk +++ b/unmodified_drivers/linux-2.6/overrides.mk @@ -4,12 +4,14 @@ # # (i.e. we need the native config for things like -mregparm, but # a Xen kernel to find the right headers) -EXTRA_CFLAGS += -D__XEN_INTERFACE_VERSION__=0x00030205 -EXTRA_CFLAGS += -DCONFIG_XEN_COMPAT=0xffffff -EXTRA_CFLAGS += -I$(M)/include -I$(M)/compat-include -DHAVE_XEN_PLATFORM_COMPAT_H +_XEN_CPPFLAGS += -D__XEN_INTERFACE_VERSION__=0x00030205 +_XEN_CPPFLAGS += -DCONFIG_XEN_COMPAT=0xffffff +_XEN_CPPFLAGS += -I$(M)/include -I$(M)/compat-include -DHAVE_XEN_PLATFORM_COMPAT_H ifeq ($(ARCH),ia64) - EXTRA_CFLAGS += -DCONFIG_VMX_GUEST + _XEN_CPPFLAGS += -DCONFIG_VMX_GUEST endif -EXTRA_CFLAGS += -include $(objtree)/include/linux/autoconf.h -EXTRA_AFLAGS += -I$(M)/include -I$(M)/compat-include -DHAVE_XEN_PLATFORM_COMPAT_H +_XEN_CPPFLAGS += -include $(objtree)/include/linux/autoconf.h + +EXTRA_CFLAGS += $(_XEN_CPPFLAGS) +EXTRA_AFLAGS += $(_XEN_CPPFLAGS)